{% spaceless %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>SQ Primerka</title>
<link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" />
</head>
<body> 

<div id="logo"> 
	<div id="sitename">SQ Primerka (Примерка)</div> 
	<div id="pagetitle"> 
		<h1>Склад Госа</h1> 
	</div> 
</div> 

<div id="navigation"> 
	{% include "menu.html" %}
	<div class="blocktitle"><h2>Ваш выбор</h2></div>
	<div class="blockcontent"> 
		<ul>Модули (показано {{ moduleTypes|length }})
		{% autoescape off %}
		{{ moduleTypeList|unordered_list }}
		{% endautoescape %}
		</ul>
	</div>
</div>

<div id="main-body"> 
  <div class="content"> 

	{% for entry in moduleTypes %}
		{% if modeEdit %}
			<form action="?mode=Edit" method="post">
			<input type="hidden" name="action" value="Save" />
			<input type="hidden" name="key" value="{{ entry.key }}" />
		{% endif %}

		<div class="blocktitle"><h2>
		{% if modeEdit %}
			<input type="text" name="name" value="{{ entry.name }}" />
		{% else %}
			{{ entry.name }}
		{% endif %}
	    </h2></div>

		<div class="blockcontent">

			<div class="spotlight-right"> 
				<div class="blockcontent">
					<img src="http://img.starquake.ru/templates/default/pic/images/{{ entry.pictureid }}med.png" />
				</div>
			</div>
			<div class="spotlight-right"> 
				<div class="blockcontent">
					<img src="http://img.starquake.ru/templates/default/pic/images/{{ entry.pictureid }}.png" />
				</div>
				{% if modeEdit %}
					<div class="blockcontent">
						<form action="?mode=Edit" method="post">
							<input type="hidden" value="{{ entry.key }}" />
							<input type="Submit" value="Сбросить" />
						</form>
					</div>
					<div class="blockcontent">
						<input type="Submit" value="Сохранить" />
					</div>
				{% else %}
					{% if allowBuy %}
						<div class="blockcontent">
							<form action="?mode=Buy" method="post">
							<input type="hidden" name="key" value="{{ entry.key }}" />
							<input type="Submit" value="Купить" />
							</form>
						</div>
					{% endif %}
					{% if allowEdit %}
           				<div class="blockcontent">
							<form action="?mode=Edit" method="post">
							<input type="hidden" name="key" value="{{ entry.key }}" />
							<input type="Submit" value="Редактировать" />
							</form>
						</div>
					{% endif %}
				{% endif %}
			</div>


			{{ entry.description|safe|linebreaks }}


			<div class="spotlight-left"> 
				<div class="blockcontent">

			{% if allowEdit %}
				<br/><label>Статус</label>&nbsp;
				{% if modeEdit %}
					<input type="text" name="status" value="{{ entry.status }}" />
				{% else %}
					{{ entry.status }}
				{% endif %}
				<br/>
			{% endif %}
			<label>Число ячеек</label>&nbsp;{{ entry.cellcount }}<br/>
			<label>Вес</label>&nbsp;{{ entry.weight }}<br/>
{% if entry.hasAttrMaxDeterioration %}
    <label>Максимальный износ</label>&nbsp;{{ entry.maxdeterioration }}<br/>
{% endif %}
{% if entry.hasAttrEnergy %}
    <label>Энергия</label>&nbsp;{{ entry.energy }}<br/>
{% endif %}
{% if entry.hasAttrSpeed %}
    <label>Скорость</label>&nbsp;{{ entry.speed }}<br/>
{% endif %}
{% if entry.hasAttrHyperEngine %}
    <label>Гипердвигатели</label>&nbsp;{{ entry.hyperengine }}<br/>
{% endif %}
{% if entry.hasAttrShield %}
    <label>Защита</label>&nbsp;{{ entry.shield }}<br/>
{% endif %}
{% if entry.hasAttrProtection %}
    <label>Защита</label>&nbsp;{{ entry.protection }}<br/>
{% endif %}
{% if entry.hasAttrPower %}
    <label>Мощность</label>&nbsp;{{ entry.power }}<br/>
{% endif %}
{% if entry.hasAttrSensitivity %}
    <label>Чувствительность</label>&nbsp;{{ entry.sensitivity }}<br/>
{% endif %}
{% if modeEdit %}
{% if entry.hasAttrLayout %}
    <label>Размещение</label>&nbsp;{{ entry.layout }}<br/>
{% endif %}
{% endif %}
{% if entry.hasAttrCanBeRobbered %}
    <label>Ограбляемый</label>&nbsp;{{ entry.canBeRobbered|yesno:"Нет,Да" }}<br/>
{% endif %}
{% if entry.hasAttrCapacity %}
    <label>Вместимость</label>&nbsp;{{ entry.capacity }}<br/>
{% endif %}
{% if entry.hasAttrDistance %}
    <label>Дальность</label>&nbsp;{{ entry.distance }}<br/>
{% endif %}
{% if entry.hasAttrRateOfFire %}
    <label>Число выстрелов</label>&nbsp;{{ entry.rateoffire }}<br/>
{% endif %}
{% if entry.hasAttrOd %}
    <label>ОД</label>&nbsp;{{ entry.od }}<br/>
{% endif %}
{% if entry.hasAttrAccuracy %}
    <label>Точность</label>&nbsp;{{ entry.accuracy }}<br/>
{% endif %}
{% if entry.hasAttrMaxCharge %}
    <label>Число зарядов</label>&nbsp;{{ entry.maxcharge }}<br/>
{% endif %}
{% if entry.hasAttrTimeCount %}
    <label>Жизнь снаряда</label>&nbsp;{{ entry.timecount }}<br/>
{% endif %}
{% if entry.hasAttrRadius %}
    <label>Радиус</label>&nbsp;{{ entry.radius }}<br/>
{% endif %}
{% if entry.hasAttrRecharge %}
    <label>Перезарядка</label>&nbsp;{{ entry.recharge }}<br/>
{% endif %}
{% if entry.hasAttrMinShot %}
    <label>Мин. урон</label>&nbsp;{{ entry.minshot }}<br/>
{% endif %}
{% if entry.hasAttrMaxShot %}
    <label>Макс. урон</label>&nbsp;{{ entry.maxshot }}<br/>
{% endif %}

		</div>
		</div>
		</div>

{% if modeEdit %}
	</form>
{% endif %}

	{% endfor %}
  </div>
</div>

    
<div id="footer">Copyright &copy; 2009 Anonymous<br /></div>
</body>
</html>
{% endspaceless %}
